package cn.easyutil.project.demo.context;


import cn.easyutil.project.base.exception.ErrorEnum;

/**
 * 业务异常
 */
public enum BizError implements ErrorEnum {
    test(188,"亲爱的，#{name},fdni","空指针了");

    private Integer code;
    private String remark;
    private String viewMsg;

    BizError(Integer code, String remark, String viewMsg) {
        this.code = code;
        this.remark = remark;
        this.viewMsg = viewMsg;
    }

    BizError(Integer code, String remark) {
        this.code = code;
        this.remark = remark;
    }

    @Override
    public int getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String getViewMsg() {
        return viewMsg;
    }

    public void setViewMsg(String viewMsg) {
        this.viewMsg = viewMsg;
    }
}
